
#ifndef CombatSysState_Ready_Calculator_H
#define CombatSysState_Ready_Calculator_H

#include "CombatState.h"

class CombatSkill;


/*
*
*	CombatState Ready for role as Calculator : Master Role
*
*	state Ready:		in combat, ready for casting a spell to its target
*/
class TCOM_API  CombatState_Ready : public ICombatState
{
public:
	CombatState_Ready(void);
	virtual ~CombatState_Ready();
	// 
	//	Fire when enter a new state
	//
	virtual void enter();

	// 
	//	Fire just before leaving a state
	//
	virtual void leave();

	// 
	//	update in current state
	//
	virtual bool update(int nElapse);

	// 
	//	onEvent callback in current state
	//
	virtual void onEvent(IEvt& evt);
protected:
	bool									m_bHasCast;
	bool									m_bCastReqSent;

};



#endif
